package com.lhd.entity.po;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.text.SimpleDateFormat;

/**
 * @Author: liuhd
 * @Date: 2025/03/16
 * @Description: 签到活动表
 */
public class Activity implements Serializable {
	private Integer id;

	/**
	 * 发布者id
	 */
	private Integer uid;

	/**
	 * 所属系统班级id
	 */
	private Integer sid;

	/**
	 * 所属课程id
	 */
	private Integer cid;

	/**
	 * 标题
	 */
	private String title;

	/**
	 * 0：普通签到，1：手势签到，2：位置签到，3：二维码签到，4：签到码签到
	 */
	private String type;

	/**
	 * 签到持续时间
	 */
	private Integer lastTime;

	/**
	 * 允许迟到的最长时间
	 */
	private Integer lateTime;

	/**
	 * 发起时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date createTime;

	/**
	 * 截止时间
	 */
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
	private Date endTime;

	// isVerify
	private Integer isVerify;

	// 发布者名字
	private String publisherName;
	// 课程名
	private String courseName;

	// 班级名
	private String sysClassName;


	public Integer getIsVerify() {
		return isVerify;
	}

	public void setIsVerify(Integer isVerify) {
		this.isVerify = isVerify;
	}

	public String getPublisherName() {
		return publisherName;
	}

	public void setPublisherName(String publisherName) {
		this.publisherName = publisherName;
	}

	public String getCourseName() {
		return courseName;
	}

	public void setCourseName(String courseName) {
		this.courseName = courseName;
	}

	public String getSysClassName() {
		return sysClassName;
	}

	public void setSysClassName(String sysClassName) {
		this.sysClassName = sysClassName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getSid() {
		return sid;
	}

	public void setSid(Integer sid) {
		this.sid = sid;
	}

	public Integer getCid() {
		return cid;
	}

	public void setCid(Integer cid) {
		this.cid = cid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Integer getLastTime() {
		return lastTime;
	}

	public void setLastTime(Integer lastTime) {
		this.lastTime = lastTime;
	}

	public Integer getLateTime() {
		return lateTime;
	}

	public void setLateTime(Integer lateTime) {
		this.lateTime = lateTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	@Override
	public String toString() {
		return "id : " + (id == null ? "空" : id) + ",发布者id : " + (uid == null ? "空" : uid) + ",所属系统班级id : " + (sid == null ? "空" : sid) + ",所属课程id : " + (cid == null ? "空" : cid) + ",标题 : " + (title == null ? "空" : title) + ",0：普通签到，1：手势签到，2：位置签到，3：二维码签到，4：签到码签到 : " + (type == null ? "空" : type) + ",签到持续时间 : " + (lastTime == null ? "空" : lastTime) + ",允许迟到的最长时间 : " + (lateTime == null ? "空" : lateTime) + ",发起时间 : " + (createTime == null ? "空" : new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(createTime)) + ",截止时间 : " + (endTime == null ? "空" : new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(endTime)) ;
	}
}